package com.ncu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
    private int empId;
    private String empName;
    private String gender;
    private String email;
    private int dId;
    private Dept dept;

    public Emp(String empName, String gender, String email, int dId) {
        this.empName = empName;
        this.gender = gender;
        this.email = email;
        this.dId = dId;
    }

    public Emp(int empId, String gender, String email, int dId) {
        this.empId = empId;
        this.gender = gender;
        this.email = email;
        this.dId = dId;
    }
}
